package ${package.Service};

import org.springframework.data.domain.Pageable;
import ${package.Entity}.${entity};
import ${superServiceClassPackage};
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xiaoxi.bms.common.exception.BMSException;

/**
 * @ClassName ${table.serviceName}
 * @Description
 * @Author ${author}
 * @Date ${date}
 * @Version 1.0
 */
public interface ${table.serviceName} extends ${superServiceClass}<${entity}> {

    /**
     * 查询分页数据
     *
     * @param ${entity?uncap_first}  查询条件
     * @param pageable 分页规则
     * @return
     */
    IPage<${entity}> findListByPage(${entity} ${entity?uncap_first},Pageable pageable) throws BMSException;

    /**
     * 添加
     *
     * @param ${entity?uncap_first} ${table.comment!}
     * 
     */
    void add(${entity} ${entity?uncap_first}) throws BMSException;

    /**
     * 删除${table.comment!}
     *
     * @param id 主键
     * 
     */
    void delete(Long id) throws BMSException;

    /**
     * 修改${table.comment!}
     *
     * @param ${entity?uncap_first} ${table.comment!}
     * @return JsonBean
     */
    void update(${entity} ${entity?uncap_first}) throws BMSException;

    /**
     * id查询数据
     *
     * @param id id
     * @return ${entity}
     */
    ${entity} findById(Long id) throws BMSException;
}
